package com.dimld.connect;

import java.io.Serializable;

public class MessageStructure implements Serializable {
    public static final int CLOSE = 0;
    public static final int SEND  = 1;

    int    type;//0为关闭，1为发送消息，2为接收到的消息
    String message;//消息的内容

    public MessageStructure(int type, String message) {
        this.type = type;
        this.message = message;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
